package com.virjar.xposedhooktool.hotload;

import de.robv.android.xposed.XC_MethodHook;

/**
 * Created by virjar on 2018/1/3.<br/>
 * hook单例封装,推荐业务上使用这个类，可以保证hook调用不重复
 */

public abstract class SingletonXC_MethodHook extends XC_MethodHook {
    public SingletonXC_MethodHook() {
    }

    public SingletonXC_MethodHook(int priority) {
        super(priority);
    }

    @Override
    public boolean equals(Object obj) {
        return obj != null && getClass().getName().equals(obj.getClass().getName());
    }
}
